/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package dnbW.entityW;

import java.util.Collection;
import java.util.Set;

/**
 *
 * @author truongbaquan
 */
public interface IEntity extends IPath {
    public IPath getPath();
    
    public Relationship getRelationship(IEntity other);
    public Collection<Relationship> getRelationships();
    public Cardinality getCardinality(Relationship relationship);
    public Set<IEntity> getRelatedEntities();
    public void addRelationship(IEntity other, Relationship relationship);

    public Collection<Attribute> getAttributes();
    public void addAttribute(Attribute attribute);
}
